#!/bin/env ruby
# encoding: utf-8
require_relative '../spec/spec_helper'
require_relative '../spec/commons/user_auth'
require_relative '../spec/commons/check_page'
require_relative '../spec/commons/user_registration_func'
require_relative '../spec/commons/user_summary_func'

describe 'Profile tab' do 	
	before (:all) {    
    #check_profile_page()
  }
  after (:all) {
  }
	
#  describe 'Logged as Employer' do
    # context "when logged in as Employer" do
    #   it "then he can work with system"  do                  
    #     sign_in('mutual_koun_employee@list.ru', '11qqAA**')
    #     check_profile_page()
    #   end
    # end
    # include_context 'User names'
    # include_context 'User address'    

    # context "when logged out" do
    #   it "then he can't work with system"  do
    #     user_logout()
    #   end
    # end

 # end

  describe 'Logged as Mentee' do    
    context "when logged in as user" do
      it "then he can work with system"  do                  
        sign_in('mutual_1_koun@list.ru', '11qqAA**')
        check_userprofile_page()
      end
    end
 #   include_context 'User names'
  #  include_context 'User address'    
   # include_context 'summary data'
    include_context 'custom fields' 

    context "when logged out" do
      it "then he can't work with system"  do
        user_logout()
      end
    end

  end  

  # describe 'Logged as Mentor' do
  #   context "when logged in as user" do
  #     it "then he can work with system"  do                  
  #       sign_in('kadabra75@list.ru', '11qqAA**')
  #       check_userprofile_page()
  #     end
  #   end
  #   # include_context 'User names'
  #   # include_context 'User address'    
  #  # include_context 'summary data'
  #   include_context 'custom fields'

  #   context "when logged out" do
  #     it "then he can't work with system"  do
  #       user_logout()
  #     end
  #   end

  # end
end